import {AppDispatch, RootState} from "../redux";
import {TypedUseSelectorHook, useDispatch, useSelector} from "react-redux";

// 自定义动作hook
export const useAppDispatch: () => AppDispatch = useDispatch;

// 自定义状态获取hook
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
